package com.algorithmicTest1;

import java.util.Arrays;
import java.util.Comparator;

public class LambdaTest2 {
    public static void main(String[] args) {
        String[] arr = {"123","ahadjka","318904819401","aohdajdla","19841jad",
        "12","12243","14143"};
        Arrays.sort(arr, ( o1,  o2) -> o2.length() - o1.length());
        bianli(arr);


    }

    private static void bianli(String[] arr) {
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
